package pers.cj.pdos.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import pers.cj.pdos.cache.CacheData;
import pers.cj.pdos.constant.CacheConstant;
import pers.cj.pdos.entity.Menu1;
import pers.cj.pdos.mapper.Menu1Mapper;
import pers.cj.pdos.service.IMenu1Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import pers.cj.pdos.vo.menu.Menu1Vo;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author chenj
 * @since 2019-11-04
 */
@Service
public class Menu1ServiceImpl extends ServiceImpl<Menu1Mapper, Menu1> implements IMenu1Service {
    @Autowired
    Menu1Mapper menu1Mapper;
    @Override
    public void insertBatch(List<Menu1> list) {
        menu1Mapper.insertBatch(list);
    }

    @Override
    public List<Menu1Vo> listVo(String userId) {
        return menu1Mapper.listVo(userId);
    }
}
